-
Home
-
MailPoet – Newsletters, Email Marketing, and Automation
-
4.6.1
-
Code
-
Classes
- CouponPreProcessor
| Total Complexity |
26 |
| Dependencies |
5 |
| Dependents |
3 |
| Total lines |
154 |
| Lines of code |
104 |
| Logical lines of code |
55 |
| Comment lines |
13 |
| Methods |
10 |
| Properties |
3 |
Methods 10
| Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
| addOrUpdateCoupon() |
S |
46 |
6 |
35 |
| ensureCouponForBlocks() |
S |
58 |
7 |
14 |
| processCoupons() |
S |
55 |
5 |
21 |
| getItemIds() |
S |
68 |
2 |
8 |
| __construct() |
S |
77 |
1 |
4 |
| getCategoryItemIds() |
S |
79 |
1 |
3 |
| getProductIds() |
S |
79 |
1 |
3 |
| generateRandomCode() |
S |
63 |
1 |
10 |
| shouldGenerateCoupon() |
S |
79 |
1 |
3 |
| shouldPersist() |
S |
79 |
1 |
3 |